package com.east.test_yy;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
public class Menu {
    private Long id;
    private String name;
    private Long parentId;
}

@Data
class MenuBo {
    private Long id;
    private String name;
    private List<MenuBo> childList = new ArrayList<>();

    public MenuBo(Menu menu){
        this.name = menu.getName();
        this.id = menu.getId();
    }
}
